Replace(string, substring1, substring2 [, scope ])


Returns string with occurrences of substring1 being replaced with substring2 in the specified scope.

See also Find, ReplaceNoCase, ReplaceList, and REReplace.

string

Any string.

substring1

String to be replaced.

substring2

String that should replace occurrences of substring1.

scope

Defines how to complete the replace operation: